provider Organizations PUT /api/0/organizations/{organization_id_or_slug}/members/{member_id}/
@utdk/sentry /api/0/organizations/{organization_id_or_slug}/members/{member_id}/
Update an Organization Member's Roles
Update a member's [organization-level](https://docs.sentry.io/organization/membership/#organization-level-roles) and [team-level](https://docs.sentry.io/organization/membership/#team-level-roles) roles. Note that for changing organization-roles, this endpoint is restricted to [user auth tokens](https://docs.sentry.io/account/auth-tokens/#user-auth-tokens). Additionally, both the original and desired organization role must have the same or lower permissions than the role of the organization user making the request For example, an organization Manager may change someone's role from Member to Manager, but not to Owner.
organization_id_or_slug path required
The ID or slug of the organization the resource belongs to.
string
member_id path required
The ID of the member to update.
string

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

updateAnOrganizationMemberSRoles
PUT/api/0/organizations/{organization_id_or_slug}/members/{member_id}/
Update a member's [organization-level](https://docs.sentry.io/organization/membership/#organization-level-roles) and [team-level](https://docs.sentry.io/organization/membership/#team-level-roles) roles. Note that for changing organization-roles, this endpoint is restricted to [user auth tokens](https://docs.sentry.io/account/auth-tokens/#user-auth-tokens). Additionally, both the original and desired organization role must have the same or lower permissions than the role of the organization user making the request For example, an organization Manager may change someone's role from Member to Manager, but not to Owner.

Parameters

required

The ID or slug of the organization the resource belongs to.

required

The ID of the member to update.

Input

The organization role of the member. The options are: * `billing` - Can manage payment and compliance details. * `member` - Can view and act on events, as well as view most other data within the organization. * `manager` - Has full management access to all teams and projects. Can also manage the organization's membership. * `owner` - Has unrestricted access to the organization, its data, and its settings. Can add, modify, and delete projects and members, as well as make billing and plan changes. * `admin` - Can edit global integrations, manage projects, and add/remove teams. They automatically assume the Team Admin role for teams they join. Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead.

Configures the team role of the member. The two roles are: - `contributor` - Can view and act on issues. Depending on organization settings, they can also add team members. - `admin` - Has full management access to their team's membership and projects. ```json { "teamRoles": [ { "teamSlug": "ancient-gabelers", "role": "admin" }, { "teamSlug": "powerful-abolitionist", "role": "contributor" } ] } ```

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.updateAnOrganizationMemberSRoles()